﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BankingLibrary
{
    public class AccountWithInterface
    {
        private IAuditLogger _logger;
        public AccountWithInterface(IAuditLogger logger)
        {
            _logger = logger;
        }
        public void Withdraw(int amount)
        {
            if (amount > 10000)
            {
                if (_logger != null)
                {
                    _logger.Log("More than 10000 withdrawn");
                }
            }
        }
    }

   
}
